<?php
class addAction extends rareAction{
	public function execute(){}
	public function executePost(){
		$banner = $this->getPostParam('banner',array());
		$images = $this->getPostParam('img',array());
		if(empty($banner)) jsonReturn(0,'添加失败');
		if(!empty($images)){
			service_image::insert($images,$banner['typeID'],0,$banner['url']);
		}
		jsonReturn(1,'ok');
	}
}
?>
